<!-- 通用CSS -->
<head th:fragment="header(title)">
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="Cache-Control" content="no-siteapp"/>
	<link rel="stylesheet" th:href="@{/js/layuiadmin-1.2.1/layui/css/layui.css}" media="all"/>
	<link rel="stylesheet" th:href="@{/js/layuiadmin-1.2.1/style/admin.css}" media="all">
	<link th:href="@{/dhecp/css/dh-icon.css?v=4}" rel="stylesheet"/>
	<link th:href="@{/dhecp/css/dh-ui.css?v=48}" rel="stylesheet"/>
	<link th:href="@{/dhecp/css/dh-motif-list.css?v=2}" rel="stylesheet"/>
	<style>
		.layui-layer-content{margin: 0;}
		.xgtc .layui-form-item{margin: 6px;}
		.xgtc .layui-form-label{width: 100px !important;}
		.xgtc .layui-input-block{margin-left:100px;}
		.xgtc .layui-textarea{height: 100px;}
		.imgwidth{width: 130px !important;height: 130px !important;display: flex;align-items: center;justify-content: center;margin-bottom: 10px;}
		.fieldsimg{margin-bottom: 10px;}
		.fieldsimg .layui-icon{position: relative !important;right: 0;top: -10px;width: 100%;}
		.fieldsimg{padding: 0 !important;width: 140px;height: 130px;display: flex;align-items: center;justify-content: center;}
		.layui-card-header .layui-form-item{display:flex;flex-wrap: wrap;}
		#uploadDemoView img{width: 140px !important;height: 130px !important;}
		/* .xgtc .layui-form select{display: block !important;} */

	</style>

</head>
<!-- 单据使用的css -->
<div th:fragment="businessCSS">
	<link th:href="@{/dhecp/css/dh-business.css?v=25}" rel="stylesheet"/>
</div>
<!-- 查询列表使用的css -->
<div th:fragment="list-css">
	<link th:href="@{/dhecp/css/dh-list.css?v=5}" rel="stylesheet"/>
</div>
<!-- 单独引入的css -->
<div th:fragment="motif-alone">
	<link th:href="@{/dhecp/css/dh-motif-alone.css?v=2}" rel="stylesheet"/>
	<script th:src="@{/dhecp/js/dh-motif-alone.js?v=2}"></script>
</div>
<!-- 单独引入的css -->
<div th:fragment="motif-alter">
	<link th:href="@{/dhecp/css/dh-motif-alter.css?v=2}" rel="stylesheet"/>
</div>
<!-- 通用JS -->
<footer th:fragment="footer">
	<script th:src="@{/js/jquery/jquery.min.js}"></script>
	<script th:src="@{/js/jquery/jquery.cookie.js}"></script>
	<script th:src="@{/js/layuiadmin-1.2.1/layui/layui.js?v=2}"></script>
	<script th:src="@{/js/jquery/jquery.blockUI.min.js}"></script>
	<script th:src="@{/dhecp/js/dh-common.js?v=53}"></script>
	<script th:src="@{/dhecp/js/dh-ui.js?v=36}"></script>
	<script th:src="@{/dhecp/js/dh-motif-list.js?v=1}"></script>
	<script th:src="@{/js/jquery/jquery.validate.min.js}"></script>
	<script th:src="@{/js/jquery/jquery.validate.extend.js}"></script>
	<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
</footer>
<!-- 单据使用的js -->
<div th:fragment="businessJS">
	<script th:src="@{/dhecp/js/dh-business.js?v=1}"></script>
	<script th:src="@{/dhecp/js/selectInTable.js?v=1}"></script>
	<script th:src="@{/js/plugins/gridreport/grwebapp.js?v=7}"></script>
	<script th:src="@{/js/plugins/xlsxFull/xlsx.full.min.js?v=1}"></script>
</div>
<!-- 查询列表使用的js -->
<div th:fragment="listJS">
	<script th:src="@{/dhecp/js/dh-list.js?v=45}"></script>
	<script th:src="@{/js/plugins/xlsxFull/xlsx.full.min.js?v=1}"></script>
</div>
<!-- 搜索条件使用的js -->
<div th:fragment="searchJS">
	<script th:src="@{/dhecp/js/dh-search.js?v=11}"></script>
</div>
<!-- 使用的js -->
<div th:fragment="deliveryRequestJS">
	<script th:src="@{/js/storage/deliveryRequest/deliveryRequest.js?v=2}"></script>
</div>
<!-- BI使用的js -->
<div th:fragment="biJS">
	<script th:src="@{/dhecp/js/dh-business.js?v=1}"></script>
	<script th:src="@{/dhecp/js/selectInTable.js?v=1}"></script>
	<script th:src="@{/dhecp/js/dh-list.js?v=44}"></script>
	<script th:src="@{/dhecp/js/dh-search.js?v=11}"></script>
	<script th:src="@{/js/plugins/echart/echarts.min.js?v=1}"></script>
	<script th:src="@{/js/plugins/echart/macarons.js?v=1}"></script>
	<script th:src="@{/dhecp/js/echarts-util.js?v=3}"></script>
	<script th:src="@{/dhecp/js/dh-bi.js?v=1}"></script>
</div>
<!-- cropbox图像裁剪插件 -->
<div th:fragment="cropbox-css">
	<link th:href="@{/js/plugins/cropbox/cropbox.css}" rel="stylesheet"/>
</div>
<div th:fragment="cropbox-js">
	<script th:src="@{/js/plugins/cropbox/cropbox.js}"></script>
</div>
<!-- jsonview格式化和语法高亮JSON格式数据查看插件 -->
<div th:fragment="jsonview-css">
	<link th:href="@{/js/plugins/jsonview/jquery.jsonview.css}" rel="stylesheet"/>
</div>
<div th:fragment="jsonview-js">
	<script th:src="@{/js/plugins/jsonview/jquery.jsonview.js}"></script>
</div>
<!-- 单据表头按钮 -->
<div th:fragment="business_btn">
	<div th:if="!${isEdit} and !${isShow}" class="tpBtn">
		<ul class="layui-nav">
			<li class="layui-nav-item" th:if=" ${buttonState['tp-add']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['tp-add']} eq 'enable'" style="background: rgba(0,161,21,1) !important;" class="layui-btn layui-btn-sm tp-add" onclick="tpBtnClick('tpAdd')"><span class="dhicon dh-lujing1089" style="margin-right: 3px;"></span>新增</a>
				<a href="javascript:;"  th:if=" ${buttonState['tp-add']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="dhicon dh-lujing1089" style="margin-right: 3px;"></span>新增</a>
			</li>
			<li class="layui-nav-item" th:if="${buttonState['tp-callin']} neq 'hidden' and ${relationObj}">
				<a href="javascript:;" th:class="${buttonState['tp-callin']} eq 'enable'?'layui-btn layui-btn-sm tp-callin':'layui-btn layui-btn-sm layui-btn-disabled'"><span class="dhicon dh-zu4133_1_1" style="margin-right: 3px;"></span>调入</a>
				<dl class="layui-nav-child" th:if=" ${buttonState['tp-callin']} eq 'enable'" th:with="Obj=${relationObj}" style="margin-top:-30px;z-index: 999;">
					<dd th:each="Obj:${Obj}" lay-unselect><a th:text="${Obj.key}" th:value="${Obj.value}" th:onclick="relationIn(this)"></a></dd>
				</dl>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['tp-save']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['tp-save']} eq 'enable'" class="layui-btn layui-btn-sm tp-save" onclick="tpBtnClick('tpSave')"><span class="dhicon dh-zu4133_2" style="margin-right: 3px;"></span>保存</a>
				<a href="javascript:;"  th:if=" ${buttonState['tp-save']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="dhicon dh-zu4133_2" style="margin-right: 3px;"></span>保存</a>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['tp-prev']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['tp-prev']} eq 'enable'" class="layui-btn layui-btn-sm tp-prev" onclick="tpBtnClick('tpPrev')"><span class="layui-icon layui-icon-left"></span>前单</a>
				<a href="javascript:;"  th:if=" ${buttonState['tp-prev']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="layui-icon layui-icon-left"></span>前单</a>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['tp-next']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['tp-next']} eq 'enable'" class="layui-btn layui-btn-sm tp-next" onclick="tpBtnClick('tpNext')"><span class="layui-icon layui-icon-right"></span>后单</a>
				<a href="javascript:;"  th:if=" ${buttonState['tp-next']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="layui-icon layui-icon-right"></span>后单</a>
			</li>
			<li class="layui-nav-item">
				<a href="javascript:;" class="layui-btn layui-btn-sm" onclick="tpBtnClick('tpSearch')"><span class="dhicon dh-lujing874" style="margin-right: 3px;"></span>查询</a>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['tp-transfer']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['tp-transfer']} eq 'enable'" class="layui-btn layui-btn-sm tp-transfer" onclick="tpBtnClick('tpTransfer')"><span class="dhicon dh-zu4133_4" style="margin-right: 3px;"></span>流转</a>
				<a href="javascript:;"  th:if=" ${buttonState['tp-transfer']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="dhicon dh-zu4133_4" style="margin-right: 3px;"></span>流转</a>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['tp-return']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['tp-return']} eq 'enable'" class="layui-btn layui-btn-sm tp-return" onclick="tpBtnClick('tpReturn')"><span class="dhicon dh-zu5115" style="margin-right: 3px;"></span>退回</a>
				<a href="javascript:;"  th:if=" ${buttonState['tp-return']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="dhicon dh-zu5115" style="margin-right: 3px;"></span>退回</a>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['tp-reject']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['tp-reject']} eq 'enable'" class="layui-btn layui-btn-sm tp-reject" onclick="tpBtnClick('tpReject')"><span class="dhicon dh-zu4133_5" style="margin-right: 3px;"></span>驳回</a>
				<a href="javascript:;"  th:if=" ${buttonState['tp-reject']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="dhicon dh-zu4133_5" style="margin-right: 3px;"></span>驳回</a>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['tp-reset']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['tp-reset']} eq 'enable'" class="layui-btn layui-btn-sm tp-reset" onclick="tpBtnClick('tpReset')"><span class="dhicon dh-zu4133_1_2" style="margin-right: 3px;"></span>重置</a>
				<a href="javascript:;"  th:if=" ${buttonState['tp-reset']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="dhicon dh-zu4133_1_2" style="margin-right: 3px;"></span>重置</a>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['tp-delete']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['tp-delete']} eq 'enable'" class="layui-btn layui-btn-sm tp-delete" style="background: rgba(200,0,0,1) !important;" onclick="tpBtnClick('tpDelete')"><span class="dhicon dh-zu4133_6" style="margin-right: 3px;"></span>删除</a>
				<a href="javascript:;"  th:if=" ${buttonState['tp-delete']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="dhicon dh-zu4133_6" style="margin-right: 3px;"></span>删除</a>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['list-export']} neq 'hidden'">
				<a href="javascript:;"  th:if=" ${buttonState['list-export']} eq 'enable'" class="layui-btn layui-btn-sm tp-export" onclick="tpBtnClick('tpExport')"><span class="dhicon dh-zu5116" style="margin-right: 3px;"></span>导出</a>
				<a href="javascript:;"  th:if=" ${buttonState['list-export']} eq 'disable'" class="layui-btn layui-btn-sm layui-btn-disabled" ><span class="dhicon dh-zu5116" style="margin-right: 3px;"></span>导出</a>
			</li>
			<li class="layui-nav-item" th:if=" ${buttonState['tp-print']} neq 'hidden'">
				<a href="javascript:;" th:class="${buttonState['tp-print']} eq 'enable'?'layui-btn layui-btn-sm tp-print':'layui-btn layui-btn-sm layui-btn-disabled'"><span class="dhicon dh-zu4133_7" style="margin-right: 3px;"></span>打印</a>
				<dl class="layui-nav-child" th:if=" ${buttonState['tp-print']} eq 'enable'" th:with="Obj=${reportObj}" style="margin-top:-30px">
					<dd th:each="Obj:${Obj}" lay-unselect><a th:text="${Obj.value}" th:onclick="ws_data_from_object([[${Obj.key}]])"></a></dd>
					<dd th:if="${session.mandatorUser.userLevel >= 6}" style=" text-align: center;" lay-unselect><a th:onclick="getReport();">管理打印模板</a></dd>
					<!--border-top: 1px #ccc solid;-->
				</dl>
			</li>
		</ul>
	</div>
</div>
 
<!-- 表头模板 -->
<!-- type:普通单据表头默认'top',弹出层则传入'layer' -->
<div th:fragment="business_tpl(type)">
	<div class="layui-form layui-card-header layuiadmin-card-header-auto">
		<div class="layui-form-item margin_t0">
			<div th:class="'layui-inline margin_r0 '+${field.fieldFrontTopSize eq 1 ?'layui-col-sm4':(field.fieldFrontTopSize eq 2 ?'layui-col-sm8':'layui-col-sm12')}" th:each="field : ${fieldsList}" th:if="${type eq 'top'?true:field.fieldExceptEdit}">
				<label class="layui-form-label" th:if="${field.fieldName}!='' and ${field.fieldName}!=null">
					<font class="f_red" th:if="${#bools.isTrue(field?.fieldFrontRequired)}">*</font>
					<font th:if="${field.fieldName}!='复试评价' and ${field.fieldName}!='记账时间'" th:text="${field.fieldName}+'：'"></font>
					<font style='margin-right: 5px;' th:if="(${field.fieldName}=='复试评价' and ${moduleTable}=='THR_PERSONNELRZFS' and ${bFieldsHiddenList[0].fieldContent}!='FlowFSRYSH') or (${field.fieldName}=='复试评价' and ${field.fieldContent}!=${session.userName} and ${session.userLevel le 5})" th:text="${field.fieldName}+'：'"></font>
					<font style='margin-right: 5px;' th:if="${field.fieldName}=='记账时间' and (
						${moduleTable}=='TCW_PARTNERBOOKEDAPPLY' or ${moduleTable}=='TCW_PARTNERPAYMENTAPPLY' or ${moduleTable}=='TCW_OPERATESERVICECHARGEAPPLY' or ${moduleTable}=='TCW_REIMBURSEMENTAPPLY'
						or ${moduleTable}=='TCW_OPERATEEXPENSETRANSFER' or ${moduleTable}=='TCW_OPERATEEXPENSETRANSFERCW' or ${moduleTable}=='TCW_OPERATEEXPENSETRANSFERTC' or ${moduleTable}=='TCW_OPERATEEXPENSETRANSFERYY'
						or ${moduleTable}=='TP_FBALOGISTICSPAYMENT'
						) and (${bFieldsHiddenList[0].fieldContent}=='end' or ${bFieldsHiddenList[0].fieldContent}=='FlowZD')" th:text="${field.fieldName}+'：'"></font>
                    <font style='margin-right: 5px;' th:if="${field.fieldName}=='复试评价' and ${moduleTable}=='THR_PERSONNELRZFS' and ${bFieldsHiddenList[0].fieldContent}=='FlowFSRYSH' and (${field.fieldContent}==${session.userName} or ${session.userLevel gt 5})"><a href='javascript:;' class='layui-btn layui-btn-sm tp-export' onclick='tpBtnChange()'><span class='dhicon dh-edit' style='margin-right: 5px;'></span>复试评价</a></font>
                    <font style='margin-right: 5px;' th:if="${field.fieldName}=='记账时间' and (
                    	${moduleTable}=='TCW_PARTNERBOOKEDAPPLY' or ${moduleTable}=='TCW_PARTNERPAYMENTAPPLY' or ${moduleTable}=='TCW_OPERATESERVICECHARGEAPPLY' or ${moduleTable}=='TCW_REIMBURSEMENTAPPLY'
                    	or ${moduleTable}=='TCW_OPERATEEXPENSETRANSFER' or ${moduleTable}=='TCW_OPERATEEXPENSETRANSFERCW' or ${moduleTable}=='TCW_OPERATEEXPENSETRANSFERTC' or ${moduleTable}=='TCW_OPERATEEXPENSETRANSFERYY'
                    	or ${moduleTable}=='TP_FBALOGISTICSPAYMENT'
                    	) and ${bFieldsHiddenList[0].fieldContent}!='end' and ${bFieldsHiddenList[0].fieldContent}!='FlowZD' "><a href='javascript:;' class='layui-btn layui-btn-sm tp-export' onclick='tpBtnChange1(moduleTable)'><span class='dhicon dh-edit' style='margin-right: 5px;'></span>记账时间</a></font>
				</label>
				<div class="layui-input-block" th:if="${!gridColumns.readOnly or (type eq 'layer' and field.fieldExceptEdit)}">
					<input th:if="${field.fieldFrontType} eq 't_text'" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}"  th:class="${field?.fieldFrontEdit}?'layui-input':'layui-input canntEdit'" autocomplete="off" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<input th:if="${field.fieldFrontType} eq 't_decimal'" th:type="${field?.fieldFrontEdit}?'number':'text'" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" th:class="${field?.fieldFrontEdit}?'layui-input':'layui-input canntEdit'" autocomplete="off" lay-verify="number" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<input th:if="${field.fieldFrontType} eq 't_date' or ${field.fieldFrontType} eq 't_datetime' or ${field.fieldFrontType} eq 't_year' or ${field.fieldFrontType} eq 't_monthly'" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" th:class="${field.fields} ne 'createTime' and ${field?.fieldFrontEdit}?'layui-input t_date':'layui-input t_date canntEdit'" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<i th:if="(${field.fieldFrontType} eq 't_date' or ${field.fieldFrontType} eq 't_datetime' or ${field.fieldFrontType} eq 't_year' or ${field.fieldFrontType} eq 't_monthly') and ${field.fields} ne 'createTime' and ${field?.fieldFrontEdit}"  th:id="${field?.fields} + '_date'" class="dhicon dh-calendar icon_date_business" style="font-size:0"></i>
					<input th:if="${field.fieldFrontType} eq 't_checkbox'" type="checkbox" th:checked="${field?.fieldContent}" value="1" th:name="${field?.fields}" th:id="${field?.fields}" lay-skin="switch" th:lay-text="${field?.fields == 'bDeleted'} ? '启用|禁用' : '是|否'" th:disabled="${gridColumns.readOnly}">
					<input th:if="${field.fieldFrontType} eq 't_buttontext'" type="text" th:class="${field.fieldFrontEdit}?'layui-input buttontext':'layui-input canntEdit'" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" readonly th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''"/>
					<i th:if="${field.fieldFrontType} eq 't_buttontext' and ${field.fieldFrontEdit}" class="layui-icon layui-icon-more getMore" th:onclick="getMore([[${field?.fields}]],null,[[${field?.fieldName}]],[[${#strings.isEmpty(field.fieldSearchType) ? field.fieldFrontExtend1 : field.fieldSearchType}]],false, [[${type eq 'layer' ? true:false}]]);" th:getType="${field?.fields}"></i>
					<input th:if="${field.fieldFrontType} eq 't_buttontextedit'" type="text" th:class="${field.fieldFrontEdit}?'layui-input buttontext':'layui-input canntEdit'" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" th:onkeyup="inputOnTop(this,[[${field?.fields}]])" th:readonly="${field?.fieldFrontEdit}?'false':'true'" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''"/>
					<i th:if="${field.fieldFrontType} eq 't_buttontextedit' and ${field.fieldFrontEdit}" class="layui-icon layui-icon-more getMore" th:onclick="getMore([[${field?.fields}]],null,[[${field?.fieldName}]],[[${field?.fieldSearchType}]],false, [[${type eq 'layer' ? true:false}]]);" th:getType="${field?.fields}"></i>
					<div th:if="${field.fieldFrontType} eq 't_dropdown' and ${field.fieldSearchType} != 'tb_baseinfo_area2' and ${field.fieldSearchType} != 'tb_baseinfo_area3'" th:remove="tag">
						<input th:unless="${field?.fieldFrontEdit}" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}"  class="layui-input canntEdit" autocomplete="off" readonly>
						<select th:if="${field?.fieldFrontEdit}" type="text" th:id="${field?.fields}" th:name="${field?.fields}" autocomplete="off" class="layui-select" lay-search th:with="map=${field?.dropdownList}" th:lay-filter="${type eq 'top' ? 'select_top':'select_layer'}" th:data-fieldMatched="${field?.fieldMatched}" th:data-fieldFrontSave="${field?.fieldFrontSave}" th:data-fieldFrontShow="${field?.fieldFrontShow}">
							<option></option>
							<option th:each="dict : ${map}" th:text="${dict.vname}" th:value="${dict.vid}" th:selected="(${#strings.isEmpty(field.fieldContent)} and ${dict.bdefaulttext eq '是'}) or ${dict.vid.toString() eq field.fieldContent.toString()} or ${dict.vname.toString() eq field.fieldContent.toString()}" th:data-vremark="${dict.vremark}" th:data-fvalue="${dict.fvalue}"></option>
						</select>
					</div>
					<div th:if="${field.fieldFrontType} eq 't_dropdown' and ${field.fieldSearchType} == 'tb_baseinfo_area2'">
						<input th:unless="${field?.fieldFrontEdit}" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}"  class="layui-input canntEdit" autocomplete="off" readonly>
						<select th:if="${field?.fieldFrontEdit}" lay-filter="province" type="text" th:id="${field?.fields}" th:name="${field?.fields}" autocomplete="off " class="layui-select province" lay-search  th:with="type=${@baseinfosimple.getBaseInfoSimpleData('area2')}" th:data-fieldMatched="${field?.fieldMatched}" th:data-fieldFrontSave="${field?.fieldFrontSave}" th:data-fieldFrontShow="${field?.fieldFrontShow}">
							<option></option>
							<option th:each="dict : ${type}" th:text="${dict.vname}" th:value="${dict.vid}" th:data-guid="${dict.guid}" th:selected="(${#strings.isEmpty(field.fieldContent)} and ${dict.bdefaulttext eq '是'}) or ${dict.vid.toString() eq field.fieldContent.toString()} or ${dict.vname.toString() eq field.fieldContent.toString()}" th:data-vremark="${dict.vremark}" th:data-fvalue="${dict.fvalue}"></option>
						</select>
					</div>
					<div th:if="${field.fieldFrontType} eq 't_dropdown' and ${field.fieldSearchType} == 'tb_baseinfo_area3'">
						<input th:unless="${field?.fieldFrontEdit}" type="text" th:name="${field?.fields}"      th:id="${field?.fields}" th:value="${field?.fieldContent}"  class="layui-input canntEdit" autocomplete="off" readonly>
						<select th:if="${field?.fieldFrontEdit}" lay-filter="city" type="text" th:id="${field?.fields}" th:name="${field?.fields}" autocomplete="off" class="layui-select city" lay-search  th:lay-filter="${type eq 'top' ? 'select_top':'select_layer'}" th:data-fieldMatched="${field?.fieldMatched}" th:data-fieldFrontSave="${field?.fieldFrontSave}" th:data-fieldFrontShow="${field?.fieldFrontShow}">
							<option></option>
						</select>
					</div>
					<input th:if="${field.fieldFrontType} eq 't_dropdownedit' and ${#strings.containsIgnoreCase(field?.fields,'fpsl')}" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" th:class="${field?.fieldFrontEdit}?'layui-input':'layui-input canntEdit'" th:style="${field?.fieldFrontEdit}?'position:absolute;overflow:hidden;z-index:2;width: calc(100% - 30px);':''" lay-verify="required" onkeyup="inputTopFpsl()" onblur="refreshSelect()" autocomplete="off" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<input th:if="${field.fieldFrontType} eq 't_dropdownedit' and !${#strings.containsIgnoreCase(field?.fields,'fpsl')}" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" th:class="${field?.fieldFrontEdit}?'layui-input':'layui-input canntEdit'" th:style="${field?.fieldFrontEdit}?'position:absolute;overflow:hidden;z-index:2;width: calc(100% - 30px);':''" lay-verify="required" onkeyup="inputSearch()" onblur="refreshSelect()" autocomplete="off" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<select th:if="${field.fieldFrontType} eq 't_dropdownedit' and ${field.fieldFrontEdit}" th:id="${field?.fields}+'_select'" th:lay-filter="${field?.fields}+'_select'" autocomplete="off" class="layui-select" lay-search th:with="map=${field?.dropdownList}">
						<option th:each="dict : ${map}" th:text="${dict.vname}" th:value="${dict.vid}" th:selected="(${#strings.isEmpty(field.fieldContent)} and ${dict.bdefaulttext eq '是'}) or ${dict.vid.toString() eq field.fieldContent.toString()} or ${dict.vname.toString() eq field.fieldContent.toString()}"></option>
					</select>
					<input th:if="${field.fieldFrontType} eq 't_file'" type="text" class="layui-input buttontext" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" readonly/><i th:if="${field.fieldFrontType} eq 't_file'" class="layui-icon layui-icon-upload getUpload" th:onclick="getUpload([[${field?.fields}]],'Head','','',[[${field?.fieldFrontValue}]]);" th:getType="${field?.fields}"></i>
					<textarea th:if="${field.fieldFrontType} eq 't_textarea'" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" th:class="${field?.fieldFrontEdit}?'layui-textarea':'layui-textarea canntEdit'" th:readonly="${field?.fieldFrontEdit}?'false':'true'" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''">[[${field.fieldContent}]]</textarea>
					<div th:if="${field.fieldFrontType} eq 't_file2'" class="layui-upload-drag fieldsimg" th:name="${field?.fields}" th:id="${field?.fields}+'_upimg'">
						<input type="hidden" th:id="${field?.fields}" th:name="${field?.fields}" th:value="${field?.fieldContent}"/>
						<div class="upicon" th:classappend="${field?.fieldContent}!='' ?'layui-hide':''">
							<i class="layui-icon"></i>
							<p>点击上传图片</p>
						</div>

						<div th:class="${field?.fieldContent}!='' ?'' :'layui-hide'" id="uploadDemoView">
						  <img th:src="${field?.fieldContent}" alt="上传成功后渲染" style="max-width: 196px">
						</div>
					</div>
					<i th:if="!${#strings.isEmpty(field.fieldFrontExtend1)}" class="dhicon dh-eye" style="position:absolute;right: 23px;top: 6px;" th:onclick="openDetailBusiness([[${field.fields}]],[[${field.fieldFrontExtend1}]])"></i>
					<p th:if="${field.fieldFrontType} eq 't_lable'" th:text="${field?.fieldFrontValue}" style="line-height:30px;"/>
				</div>
				<div class="layui-input-block" th:if="${gridColumns.readOnly and type eq 'top'}" th:switch="${field.fieldFrontType}">
					<textarea th:case="t_textarea" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" class="layui-textarea canntEdit" readonly>[[${field.fieldContent}]]</textarea>
					<input th:case="t_file" type="text" class="layui-input buttontext" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" readonly/><i th:if="${field.fieldFrontType} eq 't_file'" class="layui-icon layui-icon-upload getUpload" th:onclick="getUpload([[${field?.fields}]],'Head','','',[[${field?.fieldFrontValue}]]);" th:getType="${field?.fields}"></i>
					<input th:case="t_checkbox" type="checkbox" th:checked="${field?.fieldContent}" value="1" th:name="${field?.fields}" th:id="${field?.fields}" lay-skin="switch" th:lay-text="${field?.fields == 'bDeleted'} ? '启用|禁用' : '是|否'" disabled>
					<span th:case="t_file2">
						<img  th:if="${field?.fieldContent.length>0}" class="imgwidth" th:src="${field?.fieldContent}">
						<span th:if="${field?.fieldContent}=='' or ${field?.fieldContent}==null" style="display: inline-block; margin-top: 16px;color:#3da5fa;" >未上传</span>
					</span>

					<p th:case="t_lable" th:text="${field?.fieldFrontValue}" style="line-height:30px;"/>
					<input th:case="*" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}"  class="layui-input canntEdit" autocomplete="off" readonly>
					<i th:if="!${#strings.isEmpty(field.fieldFrontExtend1)}" class="dhicon dh-eye" style="position:absolute;right: 10px;top: 6px;" th:onclick="openDetailBusiness([[${field.fields}]],[[${field.fieldFrontExtend1}]])"></i>
				</div>
			</div>
			<input type="hidden" th:each="fieldhide : ${fieldsHiddenList}" th:name="${fieldhide?.fields}" th:id="${fieldhide?.fields}" th:value="${fieldhide?.fieldContent}">
			<input type="hidden" th:each="fieldhide : ${bFieldsHiddenList}" th:name="${fieldhide?.fields}" th:id="${fieldhide?.fields}" th:value="${fieldhide?.fieldContent}">
		</div>
	</div>
</div>

<!-- type:头程专用普通单据表头默认'top',弹出层则传入'layer' -->
<div th:fragment="business_tp2(type)">
	<div class="layui-form layui-card-header layuiadmin-card-header-auto">
		<div class="layui-form-item margin_t0">
			<div th:class="'layui-inline margin_r0 '+${field.fieldFrontTopSize eq 1 ?'layui-col-sm4':(field.fieldFrontTopSize eq 2 ?'layui-col-sm8':'layui-col-sm12')}" th:each="field : ${fieldsList}" th:if="${type eq 'top'?true:field.fieldExceptEdit}">
				<label class="layui-form-label" th:if="${field.fieldName}!='' and ${field.fieldName}!=null">
					<font class="f_red" th:if="${#bools.isTrue(field?.fieldFrontRequired)}">*</font>
					<font th:if="${field.fieldName}!='费用说明' and ${field.fieldName}!='预估物流费用' and ${field.fieldName}!='预估计重运费'  and ${field.fieldName}!='预估材质附加费' and ${field.fieldName}!='预估清关费'and ${field.fieldName}!='预估品名附加费'" th:text="${field.fieldName}+'：'"></font>
					<font class="f_red" style="font-weight: bold;"th:if="((${field.fieldName}=='费用说明'or ${field.fieldName}=='预估物流费用' or ${field.fieldName}=='预估计重运费' or ${field.fieldName}=='预估材质附加费' or ${field.fieldName}=='预估清关费' or ${field.fieldName}=='预估品名附加费') and ${moduleTable}=='TP_FBAPLANORDER')" th:text="${field.fieldName}+'：'"></font>
				</label>
				<div class="layui-input-block" th:if="${!gridColumns.readOnly or (type eq 'layer' and field.fieldExceptEdit)}">
					<input th:if="${field.fieldFrontType} eq 't_text'" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}"  th:class="${field?.fieldFrontEdit}?'layui-input':'layui-input canntEdit'" autocomplete="off" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<input th:if="${field.fieldFrontType} eq 't_decimal'" th:type="${field?.fieldFrontEdit}?'number':'text'" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" th:class="${field?.fieldFrontEdit}?'layui-input':'layui-input canntEdit'" autocomplete="off" lay-verify="number" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<input th:if="${field.fieldFrontType} eq 't_date' or ${field.fieldFrontType} eq 't_datetime' or ${field.fieldFrontType} eq 't_year' or ${field.fieldFrontType} eq 't_monthly'" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" th:class="${field.fields} ne 'createTime' and ${field?.fieldFrontEdit}?'layui-input t_date':'layui-input t_date canntEdit'" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<i th:if="(${field.fieldFrontType} eq 't_date' or ${field.fieldFrontType} eq 't_datetime' or ${field.fieldFrontType} eq 't_year' or ${field.fieldFrontType} eq 't_monthly') and ${field.fields} ne 'createTime' and ${field?.fieldFrontEdit}"  th:id="${field?.fields} + '_date'" class="dhicon dh-calendar icon_date_business" style="font-size:0"></i>
					<input th:if="${field.fieldFrontType} eq 't_checkbox'" type="checkbox" th:checked="${field?.fieldContent}" value="1" th:name="${field?.fields}" th:id="${field?.fields}" lay-skin="switch" th:lay-text="${field?.fields == 'bDeleted'} ? '启用|禁用' : '是|否'" th:disabled="${gridColumns.readOnly}">
					<input th:if="${field.fieldFrontType} eq 't_buttontext'" type="text" th:class="${field.fieldFrontEdit}?'layui-input buttontext':'layui-input canntEdit'" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" readonly th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''"/>
					<i th:if="${field.fieldFrontType} eq 't_buttontext' and ${field.fieldFrontEdit}" class="layui-icon layui-icon-more getMore" th:onclick="getMore([[${field?.fields}]],null,[[${field?.fieldName}]],[[${#strings.isEmpty(field.fieldSearchType) ? field.fieldFrontExtend1 : field.fieldSearchType}]],false, [[${type eq 'layer' ? true:false}]]);" th:getType="${field?.fields}"></i>
					<input th:if="${field.fieldFrontType} eq 't_buttontextedit'" type="text" th:class="${field.fieldFrontEdit}?'layui-input buttontext':'layui-input canntEdit'" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" th:onkeyup="inputOnTop(this,[[${field?.fields}]])" th:readonly="${field?.fieldFrontEdit}?'false':'true'" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''"/>
					<i th:if="${field.fieldFrontType} eq 't_buttontextedit' and ${field.fieldFrontEdit}" class="layui-icon layui-icon-more getMore" th:onclick="getMore([[${field?.fields}]],null,[[${field?.fieldName}]],[[${field?.fieldSearchType}]],false, [[${type eq 'layer' ? true:false}]]);" th:getType="${field?.fields}"></i>
					<div th:if="${field.fieldFrontType} eq 't_dropdown' and ${field.fieldSearchType} != 'tb_baseinfo_area2' and ${field.fieldSearchType} != 'tb_baseinfo_area3'" th:remove="tag">
						<input th:unless="${field?.fieldFrontEdit}" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}"  class="layui-input canntEdit" autocomplete="off" readonly>
						<select th:if="${field?.fieldFrontEdit}" type="text" th:id="${field?.fields}" th:name="${field?.fields}" autocomplete="off" class="layui-select" lay-search th:with="map=${field?.dropdownList}" th:lay-filter="${type eq 'top' ? 'select_top':'select_layer'}" th:data-fieldMatched="${field?.fieldMatched}" th:data-fieldFrontSave="${field?.fieldFrontSave}" th:data-fieldFrontShow="${field?.fieldFrontShow}">
							<option></option>
							<option th:each="dict : ${map}" th:text="${dict.vname}" th:value="${dict.vid}" th:selected="(${#strings.isEmpty(field.fieldContent)} and ${dict.bdefaulttext eq '是'}) or ${dict.vid.toString() eq field.fieldContent.toString()} or ${dict.vname.toString() eq field.fieldContent.toString()}" th:data-vremark="${dict.vremark}" th:data-fvalue="${dict.fvalue}"></option>
						</select>
					</div>
					<div th:if="${field.fieldFrontType} eq 't_dropdown' and ${field.fieldSearchType} == 'tb_baseinfo_area2'">
						<input th:unless="${field?.fieldFrontEdit}" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}"  class="layui-input canntEdit" autocomplete="off" readonly>
						<select th:if="${field?.fieldFrontEdit}" lay-filter="province" type="text" th:id="${field?.fields}" th:name="${field?.fields}" autocomplete="off " class="layui-select province" lay-search  th:with="type=${@baseinfosimple.getBaseInfoSimpleData('area2')}" th:data-fieldMatched="${field?.fieldMatched}" th:data-fieldFrontSave="${field?.fieldFrontSave}" th:data-fieldFrontShow="${field?.fieldFrontShow}">
							<option></option>
							<option th:each="dict : ${type}" th:text="${dict.vname}" th:value="${dict.vid}" th:data-guid="${dict.guid}" th:selected="(${#strings.isEmpty(field.fieldContent)} and ${dict.bdefaulttext eq '是'}) or ${dict.vid.toString() eq field.fieldContent.toString()} or ${dict.vname.toString() eq field.fieldContent.toString()}" th:data-vremark="${dict.vremark}" th:data-fvalue="${dict.fvalue}"></option>
						</select>
					</div>
					<div th:if="${field.fieldFrontType} eq 't_dropdown' and ${field.fieldSearchType} == 'tb_baseinfo_area3'">
						<input th:unless="${field?.fieldFrontEdit}" type="text" th:name="${field?.fields}"      th:id="${field?.fields}" th:value="${field?.fieldContent}"  class="layui-input canntEdit" autocomplete="off" readonly>
						<select th:if="${field?.fieldFrontEdit}" lay-filter="city" type="text" th:id="${field?.fields}" th:name="${field?.fields}" autocomplete="off" class="layui-select city" lay-search  th:lay-filter="${type eq 'top' ? 'select_top':'select_layer'}" th:data-fieldMatched="${field?.fieldMatched}" th:data-fieldFrontSave="${field?.fieldFrontSave}" th:data-fieldFrontShow="${field?.fieldFrontShow}">
							<option></option>
						</select>
					</div>
					<input th:if="${field.fieldFrontType} eq 't_dropdownedit' and ${#strings.containsIgnoreCase(field?.fields,'fpsl')}" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" th:class="${field?.fieldFrontEdit}?'layui-input':'layui-input canntEdit'" th:style="${field?.fieldFrontEdit}?'position:absolute;overflow:hidden;z-index:2;width: calc(100% - 30px);':''" lay-verify="required" onkeyup="inputTopFpsl()" onblur="refreshSelect()" autocomplete="off" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<input th:if="${field.fieldFrontType} eq 't_dropdownedit' and !${#strings.containsIgnoreCase(field?.fields,'fpsl')}" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" th:class="${field?.fieldFrontEdit}?'layui-input':'layui-input canntEdit'" th:style="${field?.fieldFrontEdit}?'position:absolute;overflow:hidden;z-index:2;width: calc(100% - 30px);':''" lay-verify="required" onkeyup="inputSearch()" onblur="refreshSelect()" autocomplete="off" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''" th:readonly="${field?.fieldFrontEdit}?'false':'true'">
					<select th:if="${field.fieldFrontType} eq 't_dropdownedit' and ${field.fieldFrontEdit}" th:id="${field?.fields}+'_select'" th:lay-filter="${field?.fields}+'_select'" autocomplete="off" class="layui-select" lay-search th:with="map=${field?.dropdownList}">
						<option th:each="dict : ${map}" th:text="${dict.vname}" th:value="${dict.vid}" th:selected="(${#strings.isEmpty(field.fieldContent)} and ${dict.bdefaulttext eq '是'}) or ${dict.vid.toString() eq field.fieldContent.toString()} or ${dict.vname.toString() eq field.fieldContent.toString()}"></option>
					</select>
					<input th:if="${field.fieldFrontType} eq 't_file'" type="text" class="layui-input buttontext" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" readonly/><i th:if="${field.fieldFrontType} eq 't_file'" class="layui-icon layui-icon-upload getUpload" th:onclick="getUpload([[${field?.fields}]],'Head','','',[[${field?.fieldFrontValue}]]);" th:getType="${field?.fields}"></i>
					<textarea th:if="${field.fieldFrontType} eq 't_textarea'" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" th:class="${field?.fieldFrontEdit}?'layui-textarea':'layui-textarea canntEdit'" th:readonly="${field?.fieldFrontEdit}?'false':'true'" th:onblur="${field?.fieldFrontRequired}?'inputOnBlur(this)':''">[[${field.fieldContent}]]</textarea>
					<div th:if="${field.fieldFrontType} eq 't_file2'" class="layui-upload-drag fieldsimg" th:name="${field?.fields}" th:id="${field?.fields}+'_upimg'">
						<input type="hidden" th:id="${field?.fields}" th:name="${field?.fields}" th:value="${field?.fieldContent}"/>
						<div class="upicon" th:classappend="${field?.fieldContent}!='' ?'layui-hide':''">
							<i class="layui-icon"></i>
							<p>点击上传图片</p>
						</div>

						<div th:class="${field?.fieldContent}!='' ?'' :'layui-hide'" id="uploadDemoView">
							<img th:src="${field?.fieldContent}" alt="上传成功后渲染" style="max-width: 196px">
						</div>
					</div>
					<i th:if="!${#strings.isEmpty(field.fieldFrontExtend1)}" class="dhicon dh-eye" style="position:absolute;right: 23px;top: 6px;" th:onclick="openDetailBusiness([[${field.fields}]],[[${field.fieldFrontExtend1}]])"></i>
					<p th:if="${field.fieldFrontType} eq 't_lable'" th:text="${field?.fieldFrontValue}" style="line-height:30px;"/>
				</div>
				<div class="layui-input-block" th:if="${gridColumns.readOnly and type eq 'top'}" th:switch="${field.fieldFrontType}">
					<textarea th:case="t_textarea" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" class="layui-textarea canntEdit" readonly>[[${field.fieldContent}]]</textarea>
					<input th:case="t_file" type="text" class="layui-input buttontext" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" readonly/><i th:if="${field.fieldFrontType} eq 't_file'" class="layui-icon layui-icon-upload getUpload" th:onclick="getUpload([[${field?.fields}]],'Head','','',[[${field?.fieldFrontValue}]]);" th:getType="${field?.fields}"></i>
					<input th:case="t_checkbox" type="checkbox" th:checked="${field?.fieldContent}" value="1" th:name="${field?.fields}" th:id="${field?.fields}" lay-skin="switch" th:lay-text="${field?.fields == 'bDeleted'} ? '启用|禁用' : '是|否'" disabled>
					<span th:case="t_file2">
						<img  th:if="${field?.fieldContent.length>0}" class="imgwidth" th:src="${field?.fieldContent}">
						<span th:if="${field?.fieldContent}=='' or ${field?.fieldContent}==null" style="display: inline-block; margin-top: 16px;color:#3da5fa;" >未上传</span>
					</span>

					<p th:case="t_lable" th:text="${field?.fieldFrontValue}" style="line-height:30px;"/>
					<input th:case="*" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}"  class="layui-input canntEdit" autocomplete="off" readonly>
					<i th:if="!${#strings.isEmpty(field.fieldFrontExtend1)}" class="dhicon dh-eye" style="position:absolute;right: 10px;top: 6px;" th:onclick="openDetailBusiness([[${field.fields}]],[[${field.fieldFrontExtend1}]])"></i>
				</div>
			</div>
			<input type="hidden" th:each="fieldhide : ${fieldsHiddenList}" th:name="${fieldhide?.fields}" th:id="${fieldhide?.fields}" th:value="${fieldhide?.fieldContent}">
			<input type="hidden" th:each="fieldhide : ${bFieldsHiddenList}" th:name="${fieldhide?.fields}" th:id="${fieldhide?.fields}" th:value="${fieldhide?.fieldContent}">
		</div>
	</div>
</div>
<!-- 底部保存 -->
<div th:fragment="keepbtn">
	<!-- 填充绝对定位的页脚高度，防止页面高度超过屏幕高度 -->
	<div>
		<div style="height:50px"></div>
		<div class="south" style="height: 50px;z-index: 999;position: fixed;background: #fff;bottom: 0;width: 100%;box-shadow: 0px -10px 10px -10px rgba(0,0,0,0.1);display: flex;align-items: center;justify-content: center;">
			<button type="button" class="layui-btn layui-btn-normal" onclick="tpBtnClick('tpSave')">保存</button>
		</div>
	</div>
</div>
<!-- 单据页脚 -->
<div th:fragment="pageFooter">
	<!-- 填充绝对定位的页脚高度，防止页面高度超过屏幕高度 -->
	<div th:if="!${isEdit} and !${isShow}" th:remove="tag">
		<div style="height:47px"></div>
		<div class="south" style="height: 41px;z-index: 999;position: fixed;background: #fff;bottom: 0;width: 100%;box-shadow: 0px -10px 10px -10px rgba(0,0,0,0.1)">
			<div style="margin:5px 0px;">
				<div class="layui-inline layui-col-sm2 margin_r0" th:each="field : ${bFieldsList}" style="min-width:220px">
					<label class="layui-form-label" style="width:120px">[[${field.fieldName}]]：</label>
					<div class="layui-input-block" style="margin-left: 120px;">
						<input type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" th:readonly="${field?.fieldFrontEdit}?'false':'true'" th:class="${field?.fieldFrontEdit}?'layui-input':'layui-input canntEdit'" th:style="${field?.fields eq 'activeFlowName'}?'padding-right: 18px;'">
						<i th:if="${field?.fields eq 'activeFlowName'}" class="layui-icon layui-icon-search" style="position: absolute;top: 0;right: 0;line-height: 28px;padding: 0 2px;z-index: 999;cursor: pointer;"></i>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>


<!-- 获取后台传回的数据 -->
<div  th:fragment="inlineJS">
	<!-- 后台传回通用参数-->
	<script th:inline="javascript">
		/*<![CDATA[*/
		//定义全局通用参数
		var gridColumns = [[${gridColumns}]],
				ajaxResult =[[${ajaxResult}]],//后端返回的提示信息
				decimalObj = gridColumns.decimalObj,//数值类型集合
				k_fields =[[${fieldsList}]]?[[${fieldsList}]]:[],//表头字段
				f_fields =[[${bFieldsList}]]?[[${bFieldsList}]]:[],//页脚字段
				a_fields =[[${fieldsHiddenList}]]?[[${fieldsHiddenList}]]:[],
				b_fields =[[${bFieldsHiddenList}]]?[[${bFieldsHiddenList}]]:[],
				t_fields =[[${fieldsStaticList}]]?[[${fieldsStaticList}]]:[],//静态网格字段
				importFields =[[${importFields}]],//导入字段集合
				relationObj =[[${relationObj}]],//调入关系集合
				moduleTable = [[${moduleTable}]],
				moduleUrl = '/'+([[${moduleUrl}]]?[[${moduleUrl}]]:'').replace("\\",""),
				checkProcessTask=[[${checkProcessTask}]],//是否有审核权限
				buttonState=[[${buttonState}]],//按钮状态
				isLeadCheck=[[${isLeadCheck}]],//是否直属上级审核
				isEdit=[[${isEdit}]],//是否生成的强制可编辑页面
				isShow=[[${isShow}]],//是否生成的强制可编辑页面
				session=[[${session}]],//会话数据
				ruleObj = [[${ruleObj}]],//模块规则限制设置对象
				passwordAuthentication=[[${passwordAuthentication}]],//单据功能身份验证
				all_fields=k_fields.concat(f_fields).concat(a_fields).concat(b_fields).concat(t_fields);
				var provinceArr=[[${@baseinfosimple.getBaseInfoSimpleData('area2')}]]
				var userProvince = [[${sysUserInfo?.userProvince}]];
				var userCity = [[${sysUserInfo?.userCity}]];

		var dataStr=[],
				importStr=[],
				dropDownEditList=[],//单据明细——下拉可编辑集合
				fieldFrontEditList=[],//单据明细——可编辑字段集合
				totalList={},//单据明细——合计列
				listData,
				nid = $("#nid").val(),
				bid = $("#bid").val(),
				tableNoMust = false,//默认表格必填
				useHs=session.systemSet.discountMethod;//以含税、未税面价进行单价与折扣互算
		console.log("按钮状态",buttonState)

        // 获取复试结果数据
        var dropdownAll=[]
		for(let i=0;i<k_fields.length;i++){
			if(k_fields[i].fields=="vFsJl"){
				dropdownAll=k_fields[i].dropdownList
			}
		}

        // 复试修改弹窗
		function tpBtnChange(){
			form.render();
			var str=`<form class="layui-form xgtc" action="">
					<div class="layui-form-item">
                      <label class="layui-form-label">复试时间：</label>
                      <div class="layui-input-block">
                        <input type="text" id="test1" lay-verify="title" autocomplete="off" readonly placeholder="请选择时间" class="layui-input">
                      </div>
                    </div>
					<div class="layui-form-item">
                        <label class='layui-form-label'>复试结论：</label>
                        <div class='layui-input-block'>
							<select name="interest" id="test2" lay-filter="aihao"><option value="">请选择</option>`
						for(let n=0;n<dropdownAll.length;n++){
							str+=`<option value="${dropdownAll[n].vid}">${dropdownAll[n].vname}</option>`
						}
						str+=`</select>
						</div>
                    </div>
					<div class="layui-form-item">
                        <label class='layui-form-label'>复试评价：</label>
                        <div class='layui-input-block'>
							<textarea id="test3" placeholder="请输入内容" class="layui-textarea"></textarea>
						</div>
                    </div>
				</from>`
            layer.open({
                type: 1 //此处以iframe举例
                ,title: '复试修改内容'
                ,shade: 0.2
				,area: ['390px', '330px']   //宽高
                ,maxmin: true
                ,content: str
                ,btn: ['确定修改', '关闭'] //只是为了演示
				,offset: [ //为了演示，随机坐标
                  100
                ] 
				,success: function(layero, index){
                   // 重新渲染弹层中的下拉选择框select
				   $('#test1').val($("#dFsSj").val())
			       $('#test2').val($("#vFsJl").val())
			       $('#test3').val($("#vFsPJ").val())
                    form.render('select');
					laydate.render({
                      elem: '#test1'
                      ,type: 'datetime'
                    });
                }
                ,yes: function(index){
					let dFsSj= $('#test1').val()
					let vFsJl= $('#test2').val()
					let vFsPJ= $('#test3').val()
					let object={infoItems:JSON.stringify([{nid,dFsSj,vFsJl,vFsPJ}])}
					$.ajax({
			        	url: '/hr/personnelrzfs/xgxxpost',
		                type: 'post',
						data:object,
		                dataType: 'json',
		                success: function(res) {
							if(res.code==0){
								layer.msg(res.msg);
								layer.close(index);
								setTimeout(function(){window.location.reload()}, 1000);
							}else{
								layer.msg('修改失败');
							}
		                }
			        })
                }
                ,btn2: function(){
                  layer.closeAll();
                }
			})
		}

		// 记账时间修改弹窗
		function tpBtnChange1(type){
			console.log("type", type);
			form.render();
			var str=`<form class="layui-form xgtc" action="">
					<div class="layui-form-item">
                      <label class="layui-form-label">记账时间：</label>
                      <div class="layui-input-block">
                        <input type="text" id="test1" lay-verify="title" autocomplete="off" readonly placeholder="请选择时间" class="layui-input">
                      </div>
                    </div>
				</from>`
			layer.open({
				type: 1 //此处以iframe举例
				,title: '修改记账时间'
				,shade: 0.2
				,area: ['390px', '330px']   //宽高
				,maxmin: true
				,content: str
				,btn: ['确定修改', '关闭'] //只是为了演示
				,offset: [ //为了演示，随机坐标
					100
				]
				,success: function(layero, index){
					// 重新渲染弹层中的下拉选择框select
					$('#test1').val($("#writeTime").val())
					form.render('select');
					laydate.render({
						elem: '#test1'
						,type: 'datetime'
					});
				}
				,yes: function(index){
					let writeTime= $('#test1').val();
					let object={infoItems:JSON.stringify([{nid,writeTime}])};
					let url ;

					if (type == 'TCW_PARTNERPAYMENTAPPLY'){
						url = '/finance/partnerpaymentapply/xgxxpost';
					} else if (type == 'TCW_PARTNERBOOKEDAPPLY'){
						url = '/finance/partnerbookedapply/xgxxpost';
					} else if (type == 'TCW_OPERATESERVICECHARGEAPPLY'){
						url = '/finance/operateservicechargeapply/xgxxpost';
					} else if (type == 'TCW_REIMBURSEMENTAPPLY'){
						url = '/finance/reimbursementapply/xgxxpost';
					} else if (type == 'TCW_OPERATEEXPENSETRANSFER'){
						url = '/finance/operateexpensetransferyy/xgxxpost';
					} else if (type == 'TCW_OPERATEEXPENSETRANSFERCW'){
						url = '/finance/operateexpensetransferyyy/xgxxpost';
					} else if (type == 'TCW_OPERATEEXPENSETRANSFERTC'){
						url = '/finance/operateexpensetransferyy/xgxxpost';
					} else if (type == 'TCW_OPERATEEXPENSETRANSFERYY'){
						url = '/finance/operateexpensetransferyy/xgxxpost';
					} else if (type == 'TCW_OPERATEEXPENSETRANSFERYY'){
						url = '/finance/operateexpensetransferyy/xgxxpost';
					} else if (type == 'TP_FBALOGISTICSPAYMENT'){
						url = '/logstics/fbaLogisticsPayment/xgxxpost';
					} else if (type == 'TP_FBALOGISTICSPAYMENTEC'){
						url = '/logstics/fbaLogisticsPaymentEc/xgxxpost';
					} else{//TP_FBALOGISTICSPAYMENT
						url = '/logstics/fbaLogisticsPayment/xgxxpost';
					}

					$.ajax({
						url: url,
						type: 'post',
						data:object,
						dataType: 'json',
						success: function(res) {
							if(res.code==0){
								layer.msg(res.msg);
								layer.close(index);
								setTimeout(function(){window.location.reload()}, 1000);
							}else{
								layer.msg('修改失败');
							}
						}
					})
				}
				,btn2: function(){
					layer.closeAll();
				}
			})
		}
		
		$(document).ready(function(){
            //联动获取城市列表
			setTimeout(() => {
				// 选择省份
				form.on('select(province)', function(data){
     	        	$(".city").empty();
     	        	$(".area").empty();
     	        	getCityAndArea(data.elem[data.elem.selectedIndex].dataset.guid,'');
     	        }); 
				 // 选择城市
     	        form.on('select(city)', function(data){
     	        	$(".area").empty();
     	        	getCityAndArea('',data.elem[data.elem.selectedIndex].dataset.guid);
     	        });
                // 上传图片
				$(".fieldsimg").each(function(){
					var id=$(this).attr('name')
                    upload.render({
                        elem: '#'+id+'_upimg',
			            url: window.updateurls,
			            accept: 'images',
						before: function(obj){
							this.data = {
		                    	'moduleFile':'images'
		                    }
                            //预读本地文件示例，不支持ie8
                            obj.preview(function(index, file, result){
                              console.log(index, file, result)
                            });
                        },
			            done: function (res) {
                            //如果上传失败
                            if (res.errno > 0) {
                                return layer.msg('上传失败');
                            }else{
								if(res.code==500){
					            	return layer.msg(res.msg);
					            }else{
					            	layer.msg('上传成功');
									var filePath = res.data.filePath;
					            	$('#'+id).val(filePath)
					            	layui.$('#'+id+'_upimg').find('.upicon').addClass('layui-hide')
					            	layui.$('#'+id+'_upimg').find('#uploadDemoView').removeClass('layui-hide').find('img').attr('src', filePath);
					            }
							}
                        },error: function (err) {
                            //演示失败状态，并实现重传
			            	console.log(err)
                        }
                    });
                })
				//获取初始化省对应的城市数据
			    var province=$('.province').val()
			    for(let i=0;i<provinceArr.length;i++){
			    	 if(provinceArr[i].vname==province){
			    		$(".city").empty();
     	            	$(".area").empty();
			    		getCityAndArea(provinceArr[i].guid,'');
			    		setTimeout(()=>{
			    			for(let n=0;n<k_fields.length;n++){
                                if(k_fields[n].fieldSearchType=="tb_baseinfo_area3"){
                                    $('#'+k_fields[n].fields).val(k_fields[n].fieldContent)
			    					form.render();
			    		    	}
			    		    }
			    		},1000)
			    	 }
			    }
            }, 1000);
        });

		//省市联动
        function getCityAndArea(value1,value2){
        	if(value1){
        		$.ajax({
        			url: '/base/baseinfo/list?pguid='+value1,
        	        type: 'get',
        	        dataType: 'json',
        			success: function(result) {
        				$('.city').append(new Option('请选择城市',''));
        				$.each(result.data,function(i,v){
        					$('.city').append('<option value="'+v.vid+'" data-guid="'+v.guid+'">'+v.vname+'</option>')
        	        	});
						form.render();
        			}
					
        		});
        	}
        	if(value2){
        		$.ajax({
        			url: '/base/baseinfo/list?pguid='+value2,
        	        type: 'get',
        	        dataType: 'json',
        			success: function(result) {
        				$('.area').append(new Option('请选择区县',''));
        				$.each(result.data,function(k,v){
        					$('.area').append(new Option(v.vname,v.vid));
        	        	});
        				form.render();
        			}
        		});
        	}
        };
		/*]]>*/

	</script>
	<!-- 明细特殊模板自生成 -->
	<div th:each="dfpl:${gridColumns.dictionaryForPageFieldList}" th:if="${dfpl.fieldFrontType ne 't_text'}" th:remove="tag">
		<script type="text/html" th:if="${dfpl.fieldFrontType eq 't_decimal' and #strings.containsIgnoreCase(dfpl.fieldFrontTemplet,'p_')}" th:id="'decimal_'+${dfpl.fields}">
    		<span>{{d.[[${dfpl.fields}]] + '%'}}</span>
		</script>
		<script type="text/html" th:if="${(dfpl.fieldFrontType eq 't_date' or dfpl.fieldFrontType eq 't_datetime')}" th:id="'date_'+${dfpl.fields}">
			<input type="text" th:value="'{{d.'+${dfpl.fields}+'?d.'+${dfpl.fields}+':``}}'" th:fft="${dfpl.fieldFrontType}" class="layui-input layui-table-date" style="position:absolute;overflow:hidden;z-index:2;left:0;margin:0;height:32px;padding-right:30px" autocomplete="off">
			<i class="dhicon dh-calendar icon_date_business" style="z-index:3;font-size:0"></i>
		</script>
		<script type="text/html" th:if="${dfpl.fieldFrontType eq 't_buttontext'}" th:id="'buttontext_'+${dfpl.fields}">
			<span th:text="'{{d.'+${dfpl.fields}+'}}'"></span>
			<i class="layui-icon layui-icon-more" th:onclick="getMore([[${dfpl.fields}]],{{d.LAY_TABLE_INDEX}},[[${dfpl.fieldName}]],[[${dfpl.fieldSearchType}]])" style="position:absolute;right:8px;z-index:3"></i>
		</script>
		<script type="text/html" th:if="${dfpl.fieldFrontType eq 't_buttontextedit'}" th:id="'buttontextedit_'+${dfpl.fields}">
			<input type="text" th:value="'{{d.'+${dfpl.fields}+'}}'" class="layui-input" style="position:absolute;overflow:hidden;z-index:2;left:0;margin:0;height:32px;padding-right:30px" th:onkeyup="inputOnTable(this,[[${dfpl.fields}]])" autocomplete="off">
			<i class="layui-icon layui-icon-more" th:onclick="getMore([[${dfpl.fields}]],{{d.LAY_TABLE_INDEX}},[[${dfpl.fieldName}]],[[${dfpl.fieldSearchType}]])" style="position:absolute;right:8px;z-index:3"></i>
		</script>
		<script type="text/html" th:if="${dfpl.fieldFrontType eq 't_textarea' or (dfpl.fieldFrontType eq 't_textarea' and gridColumns.readOnly)}" th:id="'textarea_'+${dfpl.fields}">
			<span th:utext="'{{typeof d.'+${dfpl.fields}+' !== \'undefined\' && d.'+${dfpl.fields}+' !== null?d.'+${dfpl.fields}+':\'\'}}'"></span>
			<i class="layui-icon layui-icon-form detail-edit" th:onclick="textareaBox(this,[[${dfpl.fields}]],[[${dfpl.fieldName}]],[[${gridColumns.readOnly}]])" style="float:right;z-index:999"></i>
		</script>
		<script type="text/html" th:if="${dfpl.fieldFrontType eq 't_dropdown'}" th:with="vtype=${#strings.substringAfter(#strings.substringAfter(dfpl.fieldSearchType,'_'),'_')}" th:id="'dropdown_'+${dfpl.fields}">
			<select th:data-field="${dfpl.fields}" th:with="map=${@baseinfosimple.getDropdownData(dfpl.fieldSearchType,dfpl.fieldFrontSave,dfpl.fieldFrontShow)}" lay-filter="select_table" fft="t_dropdown">
				<option></option>
				<div th:each="dict : ${map}" th:utext="'<option value=\''+${dict.vid}+'\' {{d.'+${dfpl.fields}+'==\''+${dict.vid}+'\'?\'selected\':\'\'}}>'+${dict.vname}+'</option>'" th:remove="tag"><div>
			</select>
		</script>
		<script type="text/html" th:if="${dfpl.fieldFrontType eq 't_dropdownedit'}" th:with="vtype=${#strings.substringAfter(#strings.substringAfter(dfpl.fieldSearchType,'_'),'_')}" th:id="'dropdownedit_'+${dfpl.fields}">
			<input type="text" th:value="'{{d.'+${dfpl.fields}+'}}'" class="layui-input" style="position:absolute;overflow:hidden;z-index:2;width: calc(100% - 33px);height: 30px;margin-top: 1px;margin-left: -7px;" th:onkeyup="inputSearchTable(this,[[${dfpl.fields}]])" autocomplete="off">
			<select th:lay-filter="${dfpl?.fields}+'_select'" autocomplete="off" class="layui-select" lay-search th:with="map=${@baseinfosimple.getDropdownData(dfpl.fieldSearchType,dfpl.fieldFrontSave,dfpl.fieldFrontShow)}">
				<option></option>
				<div th:each="dict : ${map}" th:utext="'<option value=\''+${dict.vid}+'\' {{d.'+${dfpl.fields}+'==\''+${dict.vid}+'\'?\'selected\':\'\'}}>'+${dict.vname}+'</option>'" th:remove="tag"><div>
			</select>
		</script>
		<script type="text/html" th:if="${dfpl.fieldFrontType eq 't_checkbox'}" th:id="'checkbox_'+${dfpl.fields}">
			<div th:utext="'<input type=\'checkbox\' value=\'true\' lay-skin=\'switch\' tName='+${dfpl.fields}+' tIndex=\'{{d.LAY_TABLE_INDEX}}\' lay-filter=\'switchTable\' lay-text=\'是|否\' data-field='+${dfpl.fields}+' {{d.'+${dfpl.fields}+'?\'checked\':\'\'}} '+(${dfpl.fieldFrontEdit or #bools.isTrue(checkProcessTask)}?'':'disabled')+'>'" th:remove="tag"><div>
		</script>
		<script type="text/html" th:if="${dfpl.fieldFrontType eq 't_file'}" th:id="'file_'+${dfpl.fields}">
			<span th:text="'{{d.'+${dfpl.fields}+'}}'"></span>
			<i class="layui-icon layui-icon-upload getDetailUpload" tGuid="{{d.guid}}" th:tName="${dfpl.fields}" style="float:right"></i>
		</script>
	</div>
	<!-- 自生成结束 -->
</div>
<!-- 单据查询列表头部按钮 -->
<div th:fragment="tableBtn">
	<script type="text/html" id="toolbar">
		<div class="layui-btn-container">
			<div th:if="${buttonState['list-add']} neq 'hidden' and ${buttonState['list-add']} neq ''"
				 th:class="${buttonState['list-add']} eq 'enable'?'layui-btn layui-btn-normal layui-table-tools':'layui-btn layui-table-tools layui-btn-disabled'"
				 th:lay-event="${buttonState['list-add']} eq 'enable'?'addbtn':''">
				<i class="dhicon dh-lujing1089"></i> 新增
			</div>
			<div th:if="${buttonState['list-delete']} neq 'hidden' and ${buttonState['list-delete']} neq ''"
				 th:class="${buttonState['list-delete']} eq 'enable'?'layui-btn layui-btn-danger layui-table-tools':'layui-btn layui-table-tools layui-btn-disabled'"
				 th:lay-event="${buttonState['list-delete']} eq 'enable'?'deleteBatch':''">
				<i class="dhicon dh-remove"></i> 删除
			</div>
			<div th:if="${buttonState['list-import']} neq 'hidden' and ${buttonState['list-import']} neq ''"
				 th:class="${buttonState['list-import']} eq 'enable'?'layui-btn layui-table-tools importbtn-bg':'layui-btn layui-table-tools layui-btn-disabled'"
				 th:lay-event="${buttonState['list-import']} eq 'enable'?'importBtn':''">
				<i class="dhicon dh-upload"></i> 导入
			</div>
			<div th:if="${buttonState['list-export']} neq 'hidden' and ${buttonState['list-export']} neq ''"
				 th:class="${buttonState['list-export']} eq 'enable'?'layui-btn layui-table-tools importbtn-bg':'layui-btn layui-table-tools layui-btn-disabled'"
				 th:lay-event="${buttonState['list-export']} eq 'enable'?'exportbtn':''">
				<i class="dhicon dh-zu4250_2_2"></i> 导出
			</div>
			<div th:if="${buttonState['list-group']} eq 'enable'" class="layui-btn layui-table-tools" lay-event="group"
				 th:lay-tips="'<span style=\'color:lightblue\'>温馨提示</span>：点击可<span style=\'color:red\'>切换</span>为查询单据<span style=\'color:red\'>'+${#strings.containsIgnoreCase(moduleTable,'group')?'明细':'汇总'} +'</span>的数据！'"
				 th:utext="${#strings.containsIgnoreCase(moduleTable,'group')}?'<i class=\'dhicon dh-exchange\'></i> 明细':'<i class=\'dhicon dh-zu44901\'></i> 汇总'">
			</div>
			<div th:if="${buttonState['list-tail']} eq 'enable'" class="layui-btn layui-table-tools layui-bg-orange" lay-event="tail">
				<i class="dhicon dh-zu4491"></i> 跟踪
			</div>
			<div th:if="${moduleTable} eq 'TP_STOCKTAKEDOWN' or ${moduleTable} eq 'TP_STOCKTAKEDOWNGROUP'" class="layui-btn layui-btn-warm layui-table-tools" lay-event="take">
				<i class="dhicon dh-zu44902"></i> 入库
			</div>
			<div th:if="${moduleTable} eq 'TP_STOCKTAKEON' or ${moduleTable} eq 'TP_STOCKTAKEONGROUP'" class="layui-btn layui-btn-warm layui-table-tools" lay-event="take">
				<i class="dhicon dh-zu3685"></i> 出库
			</div>
			<div th:if="${moduleTable} eq 'TCRM_WEEKLYPLAN'" class="layui-btn layui-btn-warm layui-table-tools" lay-event="calendar">
				<i class="dhicon dh-calendar"></i> 计划日程
			</div>
			<div th:if="${moduleTable} eq 'TOA_MEETINGROOMAPPOINTMENT'" class="layui-btn layui-btn-warm layui-table-tools" lay-event="calendar">
				<i class="dhicon dh-calendar"></i> 会议日历
			</div>
			<div th:if="${moduleTable} eq 'PROQR_PERSONSCHEDULING'" class="layui-btn layui-btn-warm layui-table-tools" lay-event="calendar">
				<i class="dhicon dh-calendar"></i> 行程日历
			</div>
			<div th:if="${moduleTable} eq 'THR_ATTENDANCEWORKDATESET'" class="layui-btn layui-btn-warm layui-table-tools" lay-event="workdate" shiro:hasPermission="hr:attendanceworkdateset:add">
				<i class="dhicon dh-jsfiddle"></i> 一键生成
			</div>
			<div th:if="${moduleTable} eq 'TCW_REIMBURSEMENTAPPLY'" class="layui-btn layui-btn-warm layui-table-tools" lay-event="printReimbursementapply" shiro:hasPermission="finance:reimbursementapply:view">
				<i class="dhicon dh-zu4133_7"></i> 打印职能费用单
			</div>
			<div th:if="${moduleTable} eq 'TCW_PARTNERPAYMENTAPPLY'" class="layui-btn layui-btn-warm layui-table-tools" lay-event="printPartnerpaymentapply" shiro:hasPermission="finance:partnerpaymentapply:view">
				<i class="dhicon dh-zu4133_7"></i> 打印付款申请单
			</div>
			<div th:if="${moduleTable} eq 'TCW_OPERATESERVICECHARGEAPPLY'" class="layui-btn layui-btn-warm layui-table-tools" lay-event="printOperateservicechargeapply" shiro:hasPermission="finance:operateservicechargeapply:view">
				<i class="dhicon dh-zu4133_7"></i> 打印运营费用付款单
			</div>
			<div th:if="${moduleTable} eq 'THR_OPERATECOMPANYAPPLY' and ${extraButton.editGledfJe}" class="layui-btn layui-btn-warm layui-table-tools" lay-event="editGledfJe" >
				<i class="dhicon dh-edit"></i> 培训费调整
			</div>
			<div th:if="${moduleTable} eq 'THR_OPERATECOMPANYAPPLY' and ${extraButton.editVGsSh}" class="layui-btn layui-btn-warm layui-table-tools" lay-event="editVGsSh" >
				<i class="dhicon dh-edit"></i> 修改税号
			</div>
			<div th:if="${moduleTable} eq 'TCW_STOREACCOUNT' and ${extraButton.manualMatching}" class="layui-btn layui-btn-warm layui-table-tools" lay-event="manualMatching" >
				<i class="dhicon dh-edit"></i> 手动匹配
			</div>
		</div>
	</script>
</div>
<!-- 单据明细列表头部按钮模板导入区域 -->
<div th:fragment="businessTableBtn">
	<!-- 单据明细列表头部按钮 -->
	<script type="text/html" id="toolbar">
		<div class="layui-btn-container">
			<div th:if="${buttonState['addbtn']} neq 'hidden'"
				 th:class="${buttonState['addbtn']} eq 'enable'?'layui-btn layui-btn-normal layui-table-tools':'layui-btn layui-table-tools layui-btn-disabled'"
				 th:lay-event="${buttonState['addbtn']} eq 'enable'?'addBtn':''">
				<i class="dhicon dh-lujing1089"></i> 新增
			</div>
			<div th:if="${buttonState['copybtn']} neq 'hidden'"
				 th:class="${buttonState['copybtn']} eq 'enable'?'layui-btn layui-btn-normal layui-table-tools':'layui-btn layui-table-tools layui-btn-disabled'"
				 th:lay-event="${buttonState['copybtn']} eq 'enable'?'copyBtn':''" lay-tips="<span style='color:lightblue'>温馨提示</span>：复制当前<span style='color:red'>勾选行</span>到网格中，适用于<span style='color:red'>不可重复调入</span>的单据！">
				<i class="dhicon dh-copy"></i> 复制
			</div>
			<div th:if="${buttonState['deletebatch']} neq 'hidden'"
				 th:class="${buttonState['deletebatch']} eq 'enable'?'layui-btn layui-btn-danger layui-table-tools':'layui-btn layui-table-tools layui-btn-disabled'"
				 th:lay-event="${buttonState['deletebatch']} eq 'enable'?'deleteBatch':''">
				<i class="dhicon dh-zu4133_1"></i> 删除
			</div>
			<div th:if="${moduleTable} eq 'THR_USERSALARY' or ${moduleTable} eq 'THR_USERPAYMENTSB' or ${moduleTable} eq 'THR_USERPAYMENTYB' or ${moduleTable} eq 'THR_USERPAYMENTGJJ' or ${moduleTable} eq 'THR_USERWELFARE'"
				class="layui-btn layui-table-tools importbtn-bg" 
				lay-event="calluser">
				<i class="dhicon dh-upload"></i> 调入员工
			</div>
			<div th:if="${buttonState['importbtn']} neq 'hidden'"
				 th:class="${buttonState['importbtn']} eq 'enable'?'layui-btn layui-table-tools importbtn-bg':'layui-btn layui-table-tools layui-btn-disabled'"
				 th:lay-event="${buttonState['importbtn']} eq 'enable'?'importBtn':''">
				<i class="dhicon dh-zu4499_1"></i> 导入
			</div>
			<div th:if="${buttonState['exportbtn']} neq 'hidden'"
				 th:class="${buttonState['exportbtn']} eq 'enable'?'layui-btn layui-table-tools importbtn-bg':'layui-btn layui-table-tools layui-btn-disabled'"
				 th:lay-event="${buttonState['exportbtn']} eq 'enable'?'exportTab':''" lay-tips="<span style='color:lightblue'>温馨提示</span>：根据<span style='color:red'>导入模板</span>直接导出<span style='color:red'>表格数据</span>，适用于<span style='color:red'>未保存</span>单据！">
				<i class="dhicon dh-download"></i> 导出表格
			</div>
			<div th:if="${buttonState['exportbtn']} neq 'hidden'"
				th:class="${buttonState['tp-save']} eq 'enable'?'layui-btn layui-table-tools importbtn-bg':'layui-btn layui-table-tools layui-btn-disabled'" 
				th:lay-event="${buttonState['tp-save']} eq 'enable'?'importChange':''" lay-tips="<span style='color:lightblue'>温馨提示</span>：根据<span style='color:red'>导入模板</span>，以<span style='color:red'>行号、型号</span>为唯一匹配条件，<span style='color:red'>修改可编辑</span>的表格数据！">
				<i class="dhicon dh-upload"></i> 匹配导入
			</div>
			<div th:if="${moduleTable} eq 'TP_STOCKOFFERPRICE' or ${moduleTable} eq 'TP_STOCKBARGAININ' or ${moduleTable} eq 'TP_STOCKBARGAININDETAIL' or ${moduleTable} eq 'TP_STOCKORDERBXS' or ${moduleTable} eq 'TP_STOCKORDERBXSAB'" th:remove="tag">
				<div th:if="${buttonState['importbtn']} neq 'hidden'"
					 th:class="${buttonState['importbtn']} eq 'enable'?'layui-btn layui-table-tools importbtn-bg':'layui-btn layui-table-tools layui-btn-disabled'"
					 th:lay-event="${buttonState['importbtn']} eq 'enable'?'model':''">
					<i class="dhicon dh-zu4502_1"></i> 导入型号
				</div>
				<div th:if="${buttonState['importbtn']} neq 'hidden'"
					 th:class="${buttonState['importbtn']} eq 'enable'?'layui-btn layui-table-tools importbtn-bg':'layui-btn layui-table-tools layui-btn-disabled'"
					 th:lay-event="${buttonState['importbtn']} eq 'enable'?'matching':''">
					<i class="dhicon dh-zu4502_1_1"></i> 匹配产品
				</div>
			</div>
			<div th:each="bfield:${bFieldsHiddenList}" th:remove="tag">
				<div th:if="${bfield.fields eq 'activeFlow'} and ${bfield.fieldContent ne '' and !#strings.containsIgnoreCase(bfield.fieldContent,'FlowZD') and bfield.fieldContent ne 'end'}" th:remove="tag">
					<!-- 流转过程中（制单后结束前） -->
					<div th:if="${buttonState['tp-edit'] eq 'enable'} and (${session.mandatorUser.userLevel >= 6} or ${checkProcessTask})" th:remove="tag">
						<!-- 拥有修改权限，并且用户等级大于5或者是当前审批人 -->
						<div th:switch="${moduleTable}" class="layui-btn layui-table-tools" id="change" lay-event="change">
							<div th:case="TP_STOCKOUT"><i class="dhicon dh-edit"></i> 物流信息</div>
							<div th:case="TP_STOCKOUTDIRECT"><i class="dhicon dh-edit"></i> 物流信息</div>
							<div th:case="TP_STOCKINVOICEOUT"><i class="dhicon dh-edit"></i> 发票信息</div>
							<div th:case="TP_STOCKEXPENSEACCOUNT"><i class="dhicon dh-edit"></i> 费用信息</div>
							<div th:case="TP_STOCKPAYMENTAPPLY"><i class="dhicon dh-edit"></i> 付款信息</div>
							<div th:case="TP_STOCKPAYMENTORDER"><i class="dhicon dh-edit"></i> 付款信息</div>
							<div th:case="TP_STOCKPAYMENTORDERAB"><i class="dhicon dh-edit"></i> 付款信息</div>
							<div th:case="TP_STOCKPAYMENTAPPLYRETURN"><i class="dhicon dh-edit"></i> 退回信息</div>
							<div th:case="TOA_OFFICEPAYMENTORDER"><i class="dhicon dh-edit"></i> 付款信息</div>
							<div th:case="TEDI_SPECIALORDER"><i class="dhicon dh-edit"></i> 修改内容</div>
							<div th:case="TEDI_BPIDORDER"><i class="dhicon dh-edit"></i> BPID</div>
							<div th:case="*"><i class="dhicon dh-edit"></i> 修改</div>
						</div>
					</div>
				</div>
				<div th:if="${ajaxResult.code eq 0} and ${moduleTable} eq 'TP_STOCKBARGAININ' and ${bfield.fields} eq 'activeFlow' and ${bfield.fieldContent} eq 'end'" th:remove="tag">
					<!-- 销售合同——流转结束后 -->
					<div th:each="hfield:${fieldsHiddenList}" th:if="${hfield.fields} eq 'sUser'" th:remove="tag">
						<div th:if="${session.mandatorUser.userId} eq ${hfield.fieldContent}" class="layui-btn layui-table-tools importbtn-bg" lay-event="confirmation">
							<i class="dhicon dh-edit"></i> 合同确认
						</div>
					</div>
				</div>
				<div th:if="${ajaxResult.code eq 0} and ${moduleTable} eq 'TEDI_SPECIALORDER' and ${bfield.fields} eq 'activeFlow' and ${bfield.fieldContent} ne ''" th:remove="tag">
					<!-- 特价申请——保存后包括流转 -->
					<div th:class="${bfield.fieldContent} ne 'end'?'layui-btn layui-table-tools importbtn-bg':'layui-btn layui-table-tools layui-btn-disabled'"
						 th:lay-event="${bfield.fieldContent} ne 'end'?'notice':''">
						<i class="dhicon dh-paper-plane"></i> 通知技术
					</div>
					<div class="layui-btn layui-table-tools importbtn-bg" lay-event="editList">
						<i class="dhicon dh-edit"></i> 操作记录
					</div>
				</div>
				<div th:if="${ajaxResult.code eq 0} and ${moduleTable} eq 'TP_STOCKORDERNEW' and ${bfield.fields} eq 'activeFlow' and ${bfield.fieldContent} ne ''" th:remove="tag">
					<!-- 订货申请——保存后包括流转 -->
					<div th:class="${bfield.fieldContent} eq 'end'?'layui-btn layui-table-tools importbtn-bg':'layui-btn layui-table-tools layui-btn-disabled'"
						 th:lay-event="${bfield.fieldContent} eq 'end'?'notice':''">
						<i class="dhicon dh-paper-plane"></i> 通知采购
					</div>
				</div>
			</div>
			<div th:if="${buttonState['tp-kdniao'] eq 'enable'}" th:remove="tag">
				<!-- 按钮状态——快递鸟 -->
				<div class="layui-btn layui-table-tools" onclick="kdniao()">
					<i class="dhicon dh-zu4502"></i> 物流轨迹
				</div>
			</div>
			<p th:if="${moduleTable } eq 'TCRM_BUSINESSINFO'" style="width: 280px;float: right;">“预计成交日期” 修改次数不能超过<span class="f_red"> 5 </span>次</p>
		</div>
	</script>
	<!-- 修改按钮对应模板 -->
	<script id="btnChange" type="text/template">
		<th:block th:include="include :: business_tpl('layer')" id="layer_top" />
		<table class="layui-hide" id="dhtable_c" lay-filter="ftable_c"></table>
	</script>
	<!-- 模板导入区域 -->
	<script id="importTpl" type="text/template" th:if="${moduleTable} ne 'TP_STOCKTAKEDOWN'">
		<form enctype="multipart/form-data" class="mt20 mb10">
			<div class="col-xs-offset-1">
				<input type="file" id="file" name="file"/>
				<div class="mt10 pt5">
					<p th:utext="'<a onclick=&quot;$.tablelist.importTemplate(\'/'+${moduleUrl}+'/exporttemplate\')&quot; class=\'btn btn-default btn-xs\'><i class=\'dhicon dh-file-excel-o\'></i> 下载模板</a>'" th:remove="tag"><p>
				</div>
				<font color="red" class="pull-left mt10">提示：仅允许导入“xls”或“xlsx”格式文件！</font>
			</div>
		</form>
	</script>
</div>
